home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-02
/
oop_tp55.zip
/
MTEST5.ASM
< prev
next >
Wrap
Assembly Source File
|
1980-01-07
|
896b
|
28 lines
; MTEST5.ASM
;
; a.lane 10/27/89
;
DATA SEGMENT WORD PUBLIC
ASSUME DS:DATA
EXTRN XPOS:WORD
EXTRN YPOS:WORD
DATA ENDS
CODE SEGMENT BYTE PUBLIC
ASSUME CS:CODE
EXTRN EntryPoint : FAR
mstart PROC FAR
PUBLIC mstart
push ds ; save mouse DS
mov ax, SEG DATA ; get actual address of TP
; global DS
mov ds, ax ; copy TP global into DS
mov ds:XPOS,cx ; store horiz coord in XPOS
mov ds:YPOS,dx ; store vert coord in YPOS
CALL EntryPoint ; call to main program
pop ds ; restore mouse DS
RET ; outta here!
ENDP
CODE ENDS
END